import {InternalRuleItem, Values, ValidateOption} from 'async-validator'
export type AsyncValidator = (rule: InternalRuleItem, value: string, callback: (error?: string | Error | undefined) => void, source: Values, options: ValidateOption) => Promise<void>